/**
 * @date 2006-2-16 15:33:22
 *
 */
package org.nanhill.moo.domain;

import java.util.Date;

/**
 * Favor published in moo.
 * 
 * @author alin
 */
/**
 * @author alin [xalinx at gmail dot com]
 * @date 2006-7-10
 */
public class Favor {

	/**
	 * Favor ID.
	 */
	private long id;

	/**
	 * Favor's author account.
	 */
	private User author;

	/**
	 * Message's title.
	 * 
	 */
	private String title;

	/**
	 * Message content.
	 * 
	 */
	private String content;

	/**
	 * Creation time.
	 */
	private Date createTime;

	/**
	 * Favor Cost.
	 */
	private Cost cost;

	/**
	 * Favor category.
	 */
	private Category category;

	/**
	 * Flag for favor status.
	 */
	private int status;

	/**
	 * @return
	 */
	public String getContent() {
		return content;
	}

	/**
	 * @param content
	 *            The favor content to set.
	 */
	public void setContent(String content) {
		this.content = content;
	}

	/**
	 * @return Returns the creationDate.
	 */
	public Date getCreateTime() {
		return createTime;
	}

	/**
	 * @param creationDate
	 *            The creationDate to set.
	 */
	public void setCreateTime(Date creationDate) {
		this.createTime = creationDate;
	}

	/**
	 * @return Returns the subject.
	 */
	public String getTitle() {
		return title;
	}

	/**
	 * @param subject
	 *            The subject to set.
	 */
	public void setTitle(String subject) {
		this.title = subject;
	}

	/**
	 * @return Returns the user.
	 */
	public User getAuthor() {
		return author;
	}

	/**
	 * @param user
	 *            The user to set.
	 */
	public void setAuthor(User user) {
		this.author = user;
	}

	/**
	 * @return Returns the messageId.
	 */
	public long getId() {
		return id;
	}

	/**
	 * @param favorId
	 *            The messageId to set.
	 */
	void setId(long favorId) {
		this.id = favorId;
	}

	public Cost getCost() {
		return cost;
	}

	public void setCost(Cost cost) {
		this.cost = cost;
	}

	public Category getCategory() {
		return category;
	}

	public void setCategory(Category category) {
		this.category = category;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

}